package com.axxc.jpa.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

@Documented
@Target({ ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = { EmailValidator.class })
public @interface EmailValid {
	String message() default "用户输入有误";

	String email() default "";

	Class<?>[] groups() default {};

	boolean allowNull() default true;

	Class<? extends Payload>[] payload() default {};
}